package jp.tonosama.komoki.SimpleGolfScorer2.data;

/**
 * @author Komoki
 */
public class SaveData {

    /**  */
    private int mIdx;
    /**  */
    private GolfScoreData mScoreData;

    /**
     * @param idx idx
     * @param scoreData scoreData
     */
    public SaveData(final int idx, final GolfScoreData scoreData) {
        this.mIdx = idx;
        this.mScoreData = scoreData;
    }

    public GolfScoreData getData() {
        return mScoreData;
    }

    public String getTitle() {
        return this.mScoreData.getHoleTitle();
    }

    public int getIndex() {
        return this.mIdx;
    }

    @Override
    public String toString() {
        return mScoreData.getHoleTitle();
    }
}
